﻿using System;
using Microsoft.Extensions.DependencyInjection;
using Quartz;
using Quartz.Impl;

namespace Wosperry.QuartzJob.DependencyInjection
{
    public static class QuartzJobDependencyInjection
    {
        public static IServiceCollection AddQuartzJobService(this IServiceCollection services)
        {
            services.AddTransient<ISchedulerFactory, StdSchedulerFactory>();
            services.AddTransient<IQuartzJobService, QuartzJobService>();
            return services;
        }
    }
}
